package bankingSystemServer;

/**
 * 
 * holds transaction information
 * 
 * @author Chris
 * 
 */
public class Transaction {
	public static enum TransactionType {
		WITHDRAW, DEPOSIT
	};

	/**
	 * gets amount
	 * 
	 * @return
	 */
	public int getAmount() {
		return amount;
	}

	private int amount;
	private TransactionType type;

	/**
	 * creates a Transaction object
	 * 
	 * @param type
	 * @param amount
	 */
	public Transaction(TransactionType type, int amount) {
		this.type = type;
		this.amount = amount;
	}

	/**
	 * gets transaction type
	 * 
	 * @return
	 */
	public TransactionType getType() {
		return type;
	}
}
